<div class="offerbanner clearfix">
<?php if(!empty($net)):

?>
    <div id="tabContaier" class="clearfix">
        <ul class="clearfix">
        <?php foreach ($net as $net1){
            $class='';
            if($this->session->userdata('netactive')==$net1->id){
                $class= 'active';
            }            
           echo '
               <li>
                <a class="'.$class.'" href="'.base_url().'offer/dtoffer/'.$net1->id.'" title="tab'.$net1->id.'">'.$net1->title.'</a>
               </li>'; 
        }?>             
        </ul>
    </div>
    <div class="tabdetail clearfix">
        <div class=" clearfix obanner ">  
            <?php 
            if(!empty($offer)):
                foreach($offer as $offer):
            ?> 
               <div class="box_offer clearfix"> 
               <span class="point_offer block"> <?php echo $offer->point_rate;?></span>  
                    <a href="<?php echo base_url(),'offer/detail/',$offer->id;?>" target="_blank">
                        <img src="<?php if($offer->img)echo $offer->img;else echo base_url().'upload/images/defalt_offer/defalt_offer.png';?>"/>
                    </a>
                    <div class="detail_offer left">
                        <span class="title_offer block">
                            <a href="<?php echo base_url(),'offer/detail/',$offer->id;?>" target="_blank">
                            <?php echo $offer->title;?>
                            </a>
                        </span>            
                        <span class="intro_offer block"><?php echo $offer->description;?></span>
                    </div>
               </div>
            <?php 
                endforeach;
            else:
                echo 'No offer!!';
            endif;
            ?>
            <ul class="phantrang clearfix block left">
                <?php echo $this->pagination->create_links();?>
            </ul>
            </div><!-- dix offer banner-->   
    </div>
<?php
else: echo 'No net!!';
endif;
?>    
    
</div>

<style>
.box_offer{width:282px;}
.detail_offer{width: 193px;}


</style>

<script type="text/javascript">
$(document).ready(function(){
 
});
</script>

